#ifndef SHIP_H
#define SHIP_H

#include <QGLWidget>
#include <QGLShaderProgram>
#include "modeldata.h"
#include "mathbox.h"

class Ship
{
public:
	Ship(const QGLContext* context);
	bool loadViewModel( const std::string& fileName );
	bool loadTextures( QGLWidget* glwidget );
	bool loadShaders();
	void draw(const ShipRenderData& mathModel, const GLenum shadowTexNum = 0);

private:
	ViewModel viewModel;
	QGLShaderProgram shader;
};

#endif // SHIP_H